package de.ciupka.minesweeper.options;

import java.util.ArrayList;

import javax.swing.JCheckBox;
import javax.swing.JComponent;

public class Options {

	private JCheckBox sounds;
	private JCheckBox stopwatch;
	private JCheckBox remember;
	private ArrayList<JComponent> components;
	
	public Options() {
		components = new ArrayList<JComponent>();
		createComponents();
	}
	
	private void createComponents() {
		sounds = new JCheckBox("Sounds wiedergeben");
		sounds.setBounds(20, 220, 200, 20);
		stopwatch = new JCheckBox("Stoppuhr anzeigen");
		stopwatch.setBounds(20, 245, 200, 20);
		remember = new JCheckBox("Fragezeichen zulassen");
		remember.setBounds(20, 270, 200, 20);
		addComponents();
	}
	
	private void addComponents() {
		components.clear();
		components.add(sounds);
		components.add(stopwatch);
		components.add(remember);
	}
		
	public ArrayList<JComponent> getComponents() {
		return components;
	}
	
}
